package com.mojo.config;

import com.mojo.pojo.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * spring配置类,完全基于注解和java代码实现bean管理
 *
 * @author <a href="mailto:sjj@jianzhimao.com">mojo</a>
 * copyright (C), 2013-2021, 广州九尾信息科技有限公司
 * @date 2021/9/2 17:41
 */
@Configuration
@ComponentScan(basePackages = "com.mojo")
public class SpringConfig {
    @Bean
    Person person() {
        return new Person();
    }
}
